package com.penghaisoft.microwms.material.web.appointment.controller;

import com.alibaba.fastjson.JSONObject;
import com.penghaisoft.microwms.common.base.model.BaseUser;
import com.penghaisoft.microwms.common.controller.BaseController;
import com.penghaisoft.microwms.common.dto.TransResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by zxcq0 on 2018/4/17.
 */
@RestController
@RequestMapping(value = "/appointment")
@Slf4j
public class AppointmentController extends BaseController {

    /**
     * 测试
     * @param user
     * @return
     */
    @PostMapping("test")
    public TransResult test(@RequestBody BaseUser user){
        log.info(JSONObject.toJSONString(user));
        return new TransResult("1","预约");
    }
}
